import axios from 'axios'
import {beforeRequest, beforeRequestError, afterResponse, afterResponseError} from '../config/intercepters/axios'
// 添加请求拦截器
axios.interceptors.request.use(beforeRequest, beforeRequestError)

// 添加响应拦截器
axios.interceptors.response.use(afterResponse, afterResponseError)

export default axios
